Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Managing Pixmap Draw Contexts

QuickDraw 3D provides routines that you can use to create and manipulate pixmap draw contexts.

Q3PixmapDrawContext_New

You can use the Q3PixmapDrawContext_New function to create a new pixmap draw context.

TQ3DrawContextObject Q3PixmapDrawContext_New (
                     const TQ3PixmapDrawContextData *contextData);
contextData
A pointer to a pixmap draw context data structure.

DESCRIPTION

The Q3PixmapDrawContext_New function returns, as its function result, a new draw context object having the characteristics specified by the contextData parameter.

Q3PixmapDrawContext_GetPixmap

You can use the Q3PixmapDrawContext_GetPixmap function to get the pixmap associated with a pixmap draw context.

TQ3Status Q3PixmapDrawContext_GetPixmap (
                     TQ3DrawContextObject drawContext,
                     TQ3Pixmap *pixmap);
drawContext
A pixmap draw context object.
pixmap
On exit, a pointer to a pixmap.

DESCRIPTION

The Q3PixmapDrawContext_GetPixmap function returns, in the pixmap parameter, a pointer to the pixmap currently associated with the draw context specified by the drawContext parameter.

Q3PixmapDrawContext_SetPixmap

You can use the Q3PixmapDrawContext_SetPixmap function to set the pixmap associated with a pixmap draw context.

TQ3Status Q3PixmapDrawContext_SetPixmap (
                     TQ3DrawContextObject drawContext,
                     const TQ3Pixmap *pixmap);
drawContext
A pixmap draw context object.
pixmap
A pointer to a pixmap.

DESCRIPTION

The Q3PixmapDrawContext_SetPixmap function sets the pixmap associated with the draw context specified by the drawContext parameter to the pixmap specified by the pixmap parameter.


© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |